// 自动向上滚动函数
function moveup(upBtn) {
    function move() {
        nowposition -= 50;
        if (nowposition > 0) {
            window.scrollTo(0, nowposition);
        }
        else {
            clearInterval(timer);
        }
    }
    var nowposition = 0;
    upBtn.onclick = function () {
        nowposition = document.documentElement.scrollTop || document.body.scrollTop;
        timer = setInterval(move, 1);
    }
}